﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RhythmComet.Utils
{
    public class RandomGenerator
    {
        static Random random = new Random();

        public static Random Random
        {
            get { return random; }
        }

        public static float RandomBetween(float min, float max)
        {
            return min + (float)random.NextDouble() * (max - min);
        }

        public static int RandomBetween(int min, int max)
        {
            return min + random.Next(max - min + 1);
        }
    }
}
